package vamp_serviceweb

import java.sql.Timestamp

class Vehiclestatus {
    /**
     *
     */

    Timestamp timestamp;
    String comment;
    Vehicle vehicle;
    Status status;
    //localisation du véhicule
    Gpslocation gpslocation;

    static constraints = {
        gpslocation(nullable:  true, blank: true)
        timestamp(nullable: true, blank:true)
    }

    static mapping = {
        id column: 'idvehiclestatus'
        vehicle column:'idvehicle'
        status column:'idstatus'
        gpslocation column:'idgpslocation'
    }
}
